<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@	taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>查看个人信息</title>
<link rel="stylesheet" href="layui/css/layui.css" media="all">
</head>
<body>
	<!-- 查看个人信息 -->
	<form id="ent" action="entering" method="post" lay-filter="ent"
		class="layui-form layui-form-pane"
		style="margin: 0; pause: 5px 0 0 25px; color: #333;">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-inline">
					<input type="text" name="user_name" lay-verify="required"
						autocomplete="off" value="${user.user_name}" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">年龄</label>
				<div class="layui-input-inline">
					<input type="text" name="user_age" lay-verify="required|phone"
						autocomplete="off" value="${user.user_age}" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">手机号</label>
				<div class="layui-input-inline">
					<input type="text" name="user_phone" lay-verify="required|phone"
						autocomplete="off" value="${user.user_phone}" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">邮箱</label>
				<div class="layui-input-inline">
					<input type="text" name="user_mail" lay-verify="required|email"
						autocomplete="off" value="${user.user_mail}" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">用户名</label>
				<div class="layui-input-inline">
					<input type="text" name="user_username"
						lay-verify="required|identity" autocomplete="off"
						value="${user.user_username}" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">身份证</label>
				<div class="layui-input-inline">
					<input type="text" name="user_idCard"
						lay-verify="required|identity" autocomplete="off"
						value="${user.user_idCard}" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">生日</label>
				<div class="layui-input-inline">
					<input type="text" name="user_birthday" id="user_birthday"
						lay-verify="required|date" placeholder="yyyy-MM-dd"
						autocomplete="off" value='<fmt:formatDate value="${ user.user_birthday}" pattern='yyyy-MM-dd'/>'
						class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">籍贯</label>
				<div class="layui-input-inline">
					<input type="text" name="user_native" lay-verify="required"
						autocomplete="off" value="${user.user_native}" class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">家庭住址</label>
			<div class="layui-input-block">
				<input type="text" name="user_home" lay-verify="required"
					placeholder="" value="${user.user_home}" autocomplete="off"
					class="layui-input">
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">学历</label>
				<div class="layui-input-inline">
					<input type="text" name="user_education"
						lay-verify="required|identity" autocomplete="off"
						value="${user.user_education}" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">民族</label>
				<div class="layui-input-inline">
					<input type="text" name="user_nation"
						lay-verify="required|identity" autocomplete="off"
						value="${user.user_nation}" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">毕业时间</label>
				<div class="layui-input-inline">
					<input type="text" name="graduate_time" id="graduate_time"
						lay-verify="date" placeholder="yyyy-MM-dd"
						value="<fmt:formatDate value="${ user.graduate_time}" pattern='yyyy-MM-dd'/>" autocomplete="off"
						class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">婚姻状况</label>
				<div class="layui-input-inline">
					<input type="text" name="user_education"
						lay-verify="required|identity" autocomplete="off"
						value="${user.user_married==1?'已婚':'未婚'}" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">性别</label>
				<div class="layui-input-inline">
					<input type="text" name="user_nation"
						lay-verify="required|identity" autocomplete="off"
						value="${user.user_sex==1?'男':'女'}" class="layui-input">
				</div>
			</div>
		</div>
	</form>
	<!-- js引入 -->
	<script src="js/jquery.js"></script>
	<script src="layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript" charset="utf-8">
		layui
				.use(
						[ 'form', 'layedit', 'laydate' ],
						function() {
							var form = layui.form, layer = layui.layer, layedit = layui.layedit, laydate = layui.laydate;
							//墨绿主题
							laydate.render({
								elem : '#user_birthday',
								theme : 'molv',
								trigger : 'click'
							});

							//墨绿主题
							laydate.render({
								elem : '#graduate_time',
								theme : 'molv',
								trigger : 'click'
							});

						});
	</script>
</body>
</html>